﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for FakeDataProvider
/// </summary>
public static class FakeDataProvider
{
	static Random _rnd = new Random();
	public static IEnumerable<SomeDataObject> GetData(int size)
	{
		SomeDataObject[] res = new SomeDataObject[size];
		for (int i = 0; i < size; ++i)
		{
			res[i] = new SomeDataObject
			{
				Alpha = ((char)_rnd.Next('A', 'D')).ToString(),
				Beta = ((char)_rnd.Next('P', 'S')).ToString(),
				Castle = _rnd.Next(1, 4),
			};
		}
		return res;
	}
	public static IEnumerable<DataObjectWithProperties> GetDataWithProperties(int size)
	{
		DataObjectWithProperties[] res = new DataObjectWithProperties[size];
		for (int i = 0; i < size; ++i)
		{
			res[i] = new DataObjectWithProperties
			{
				Alpha = ((char)_rnd.Next('A', 'D')).ToString(),
				Beta = ((char)_rnd.Next('P', 'S')).ToString(),
				Castle = _rnd.Next(1, 4),
			};
		}
		return res;
	}
}
